import 'package:ai/AppRouter.dart';
import 'package:ai/AppRouter.gr.dart';
import 'package:ai/page/chat/MessageItem.dart';
import 'package:ai/page/chat/chat_message_page.dart';
import 'package:auto_route/annotations.dart';
import 'package:flutter/material.dart';

import '../../config/Config.dart';
import '../../entity/TextMessage.dart';
import '../../util/CommonUtils.dart';

@RoutePage()
class ChatPage extends StatefulWidget {
  const ChatPage({super.key});

  @override
  State<ChatPage> createState() => _ChatPageState();
}

class _ChatPageState extends State<ChatPage> {

  @override
  Widget build(BuildContext context) {
    return Scaffold(
        appBar: AppBar(
          backgroundColor: Colors.white,
          centerTitle: true,
          title: const Text("AI对话"),
        ),
        body: FilledButton(onPressed: (){
          CommonUtils.go(context, const ChatMessageRoute());
        }, child: const Text("aaa")),
    );
  }
}